import request from "@/utils/request";

export function getOrderTime(data) {
	return request({
		url: `/web/authc/order/getDeliveryTime`,
		method: 'GET',
		data
	})
}

export function createOrder(data) {
	return request({
		url: `/web/authc/order/create`,
		method: 'POST',
		data
	})
}
export function createEvaluate(data) {
	return request({
		url: `/web/authc/order/evaluate/create`,
		method: 'POST',
		data
	})
}
export function createEvaluateReply(data) {
	return request({
		url: `/web/authc/order/reply`,
		method: 'POST',
		data
	})
}

export function getOrders(data) {
	return request({
		url: `/web/authc/order/getUserOrderList`,
		method: 'GET',
		data
	})
}
export function getMerOrders(data) {
	return request({
		url: `/web/authc/order/getMerchantOrderList`,
		method: 'GET',
		data
	})
}

export function getOrder(data) {
	return request({
		url: `/web/authc/order/detail`,
		method: 'GET',
		data
	})
}

export function cancelOrder(data) {
	return request({
		url: `/web/authc/order/cancel`,
		method: 'POST',
		data
	})
}

